package day10;

public class TestSuper {
    public static void main(String[] args) {
        B2 b = new B2();
        b.test();
        b.show();

    }
}
class A2{
    public int x = 45;
}
class B2 extends A2{
    int x = 55;

    public void test(){
        int x = 90; //局部变量
        System.out.println(x);
        // 孩子可以使用父亲的public的属性
        System.out.println(super.x);
        System.out.println(this.x);
    }

    public void show(){
        System.out.println(x);
    }
}
